1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package de.bea.domingo.connector.impl;
24
25 import javax.resource.cci.ResourceAdapterMetaData;
26
27 import de.bea.domingo.i18n.ResourceManager;
28 import de.bea.domingo.i18n.Resources;
29
30 /***
31 * @author <a href=mailto:kurt.riede@bea.de>Kurt Riede</a>
32 */
33 public final class DomingoMetaData implements ResourceAdapterMetaData {
34
35 /*** Internationalized resources. */
36 private static final Resources RESOURCES = ResourceManager.getClassResources(DomingoMetaData.class);
37
38 /*** singleton instance of this class. */
39 private static final DomingoMetaData INSTANCE = new DomingoMetaData();;
40
41 /*** Product name of the underlying EIS instance. */
42 public static final String EIS_PRODUCT_NAME = RESOURCES.getString("eis.product.name");
43
44 /*** Maximum limit on number of active concurrent connections that an EIS instance can support across client processes. */
45 public static final int MAX_CONNECTIONS = RESOURCES.getInteger("max.connections");
46
47 private static final String[] INTERACTION_SPECS = new String[0];
48
49 /***
50 * Private constructor to prevent instantiation.
51 */
52 private DomingoMetaData() {
53 }
54
55 /***
56 * return the singleton instance of this class.
57 *
58 * @return singleton instance
59 */
60 public static DomingoMetaData getInstance() {
61 return INSTANCE;
62 }
63
64 /***
65 * {@inheritDoc}
66 *
67 * @see javax.resource.cci.ResourceAdapterMetaData#getAdapterVersion()
68 */
69 public String getAdapterVersion() {
70 return RESOURCES.getString("adapter.version");
71 }
72
73 /***
74 * {@inheritDoc}
75 *
76 * @see javax.resource.cci.ResourceAdapterMetaData#getAdapterVendorName()
77 */
78 public String getAdapterVendorName() {
79 return RESOURCES.getString("adapter.vendor.name");
80 }
81
82 /***
83 * {@inheritDoc}
84 *
85 * @see javax.resource.cci.ResourceAdapterMetaData#getAdapterName()
86 */
87 public String getAdapterName() {
88 return RESOURCES.getString("adapter.name");
89 }
90
91 /***
92 * {@inheritDoc}
93 *
94 * @see javax.resource.cci.ResourceAdapterMetaData#getAdapterShortDescription()
95 */
96 public String getAdapterShortDescription() {
97 return RESOURCES.getString("adapter.short.description");
98 }
99
100 /***
101 * {@inheritDoc}
102 *
103 * @see javax.resource.cci.ResourceAdapterMetaData#getSpecVersion()
104 */
105 public String getSpecVersion() {
106 return RESOURCES.getString("connector.spec.version");
107 }
108
109 /***
110 * {@inheritDoc}
111 *
112 * @see javax.resource.cci.ResourceAdapterMetaData#getInteractionSpecsSupported()
113 */
114 public String[] getInteractionSpecsSupported() {
115 return INTERACTION_SPECS;
116 }
117
118 /***
119 * {@inheritDoc}
120 *
121 * @see javax.resource.cci.ResourceAdapterMetaData#supportsExecuteWithInputAndOutputRecord()
122 */
123 public boolean supportsExecuteWithInputAndOutputRecord() {
124 return false;
125 }
126
127 /***
128 * {@inheritDoc}
129 *
130 * @see javax.resource.cci.ResourceAdapterMetaData#supportsExecuteWithInputRecordOnly()
131 */
132 public boolean supportsExecuteWithInputRecordOnly() {
133 return false;
134 }
135
136 /***
137 * {@inheritDoc}
138 *
139 * @see javax.resource.cci.ResourceAdapterMetaData#supportsLocalTransactionDemarcation()
140 */
141 public boolean supportsLocalTransactionDemarcation() {
142 return false;
143 }
144 }